﻿
using UnityEngine;

public class AtkState : StateTemplate<PlayerController>
{

    public AtkState(int id, PlayerController p) : base(id, p)
    {

    }
    public override void OnEnter(params object[] args)
    {
        Debug.Log("imin");
        owner.anim.SetTrigger("isAtk");
        base.OnEnter(args);
        
    }
    public override void OnStay(params object[] args)
    {
        if (Input.GetKeyDown(KeyCode.J))
        {
            owner.anim.SetBool("isConAtk",true);
        }
        base.OnStay(args);
       
    }
    public override void OnExit(params object[] args)
    {
        owner.anim.SetBool("isIdle", true);
        owner.anim.SetBool("isConAtk", false);
        base.OnExit(args);
    }

}

